﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Node.cs" company="Team Awesome">
//   Awesome
// </copyright>
// <summary>
//   Defines the RedBlackTree type.
//
//	 Commented out until work is resumed to avoid an overflow of warnings.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

////namespace System.Collections.Generic
////{
////    using Diagnostics.Contracts;

////    /// <content>
////    /// Contains the Node class
////    /// </content>
////    public partial class RedBlackTree<T> where T : IComparable
////    {
////        /// <summary>
////        /// Validates the node and return true if it is red.
////        /// </summary>
////        /// <param name="node">
////        /// The node.
////        /// </param>
////        /// <returns>
////        /// True if node.IsRed is true.
////        /// </returns>
////        [Pure]
////        private static bool IsColourRed(Node node)
////        {
////            #region Code Contracs: Pre - and Post conditions

////            Contract.Ensures(Contract.Result<bool>() == (Contract.OldValue(node) != null && Contract.OldValue(node).IsRed));

////            #endregion

////            return node != null && node.IsRed;
////        }

////        /// <summary>
////        /// A red black tree node.
////        /// </summary>
////        private class Node
////        {
////            /// <summary>
////            /// Initializes a new instance of the <see cref="Node"/> class.
////            /// </summary>
////            /// <param name="item">
////            /// The data item.
////            /// </param>
////            public Node(T item)
////            {
////                Item = item;
////                NumberOfItems = 1;
////            }

////            /// <summary>
////            /// Gets or sets left node.
////            /// </summary>
////            public Node Left { get; set; }

////            /// <summary>
////            /// Gets or sets right node.
////            /// </summary>
////            public Node Right { get; set; }

////            /// <summary>
////            /// Gets or sets a value indicating whether this node is black (or red).
////            /// </summary>
////            public bool IsRed { get; set; }

////            /// <summary>
////            /// Gets the item.
////            /// </summary>
////            public T Item { get; private set; }

////            /// <summary>
////            /// Gets or sets NumberOfItems.
////            /// </summary>
////            public int NumberOfItems { get; set; }
////        }
////    }
////}